<?php
class cmspad_validator_chinese{

	public function validate($value){
		return preg_match('/^[\x0391-\xFFE5]+$/', $value);
	}

	public static function getJavascript($value){
		return "return /^[\\u0391-\\uFFE5]+$/.test($value);";
	}
}
?>
